<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: "HomePage",
  data() {
    return {};
  },
  methods: {
    bodyScale() {
      let devicewidth = document.documentElement.clientWidth;
      let scale = devicewidth / 1920;
      document.body.style.zoom = scale;
    },
  },
  mounted() {
    this.bodyScale();
    window.document.documentElement.setAttribute('theme', 'light');
    const link = document.querySelector("link[rel*='icon']");
    link.rel = "icon";
    link.href = require('@/assets/image/logo.png')
    document.title='相亲交友～'
    document.getElementsByTagName("head")[0].appendChild(link);
    window.onresize = () => {
      return (() => {
        this.bodyScale();
      })();
    };
  },
};

</script>

<style lang="scss">

</style>
